<template>
	<view class="content">
		<signInput ref="sign" :header="header" :action="action" @signToUrl="signToUrl" bgColor="#ffffff" :outSignWidth="792"
			:outSignHeight="360">
		</signInput>
	</view>
</template>
<script>
	import signInput from "@/shopowner/components/am-sign-input/am-sign-input.vue"
	export default {
		components: {
			signInput
		},
		data() {
			return {
				action: "", //上传服务器的地址
				header: {}, //图片上传携带头部信息






			}
		},

		methods: {





				id: 0,
				c_data: {}
			}
		},
		onLoad(op) {
			this.id = op.id
			this.getData(op.id)
		},
		methods: {
			async getData(id) {
				let data = await this.$api.shopowner.contractDetail({ id: id })
				console.log(data, '2');
				this.c_data = data
			},





			/**
			 * @param {Object} e
			 * 返回的签名地址
			 */
			signToUrl(e) {
				if (e.error_code && e.error_code === '201') {
					uni.showToast({
						title: e.msg,
						icon: 'none'
					})
					return
				}
			},
		},
	}
</script>
<style lang="scss">
	.content {
		min-height: 100vh;
		background: #ffffff;
		padding: 60px 0px;
		display: flex;
		justify-content: center;
	}
</style>